#ifndef _CONSTANTS_H
#define _CONSTANTS_H

#define INIT_WIDTH 700
#define INIT_HEIGHT 800

#define WINDOWS_WIDTH 500
#define WINDOWS_HEIGHT 425
#define WINDOWS_X0 5
#define WINDOWS_Y0 200
#define WINDOWS_X1 550
#define WINDOWS_Y1 200
#define HIST_WIDTH 256
#define HIST_HEIGHT 200

#define FILTRO_FPS 25.0

//haar y busqueda de ojos
#define INC_ROI_LOST 1.20
#define HAAR_MIN_X_WINDOWS 150
#define HAAR_MIN_Y_WINDOWS 200

#define LK_RECT_WIDTH 50
#define LK_RECT_HEIGHT 30


#define SHOW_IMAGE_BUFFER_SIZE 16
/* #define INI_FILE "E:\\Pedro\\Escritorio\\Video\\viewer.ini" */
/* #define INI_FILE_SEC "File" */
/* #define INI_FILE_KEY "Last File" */
/* #define INI_CAMERA "CAMERA" */



#define MIN_CORR_VALUE 0.65F
#define UMBRAL_DIST_RANSAC_FIT_CIRCLE 10.0F
#define N_ITERATIONS_RANSAC_FIT_CIRCLE 400
#define N_ITERATIONS_RANSAC_FIT_CIRCLE_MAX 2000
#define LIMIT_ANGLE_Y (65.0F*CV_PI/180.0F)
#define MIN_ANGLE_Y (30.0F*CV_PI/180.0F)
#define MAX_ANGLE_Y (85.0F*CV_PI/180.0F)




#define ITERACIONES_RANSAC_4 72 
#define ITERACIONES_RANSAC_5 146
#define ITERACIONES_RANSAC_6 293
#define ITERACIONES_RANSAC_7 588
#define ITERACIONES_RANSAC_8 1177
#define ITERACIONES_RANSAC_9 1500
#define PUNTOS_RANSAC 7
#define ITERACIONES_RANSAC ITERACIONES_RANSAC_9

#define MIN_INLIERS 12
#define MIN_INLIERS2 (PUNTOS_RANSAC+2)

//#define UMBRAL_DIST_UP 10.0f
//#define UMBRAL_DIST_DOWN 25.0f

#define MAX_DIST_R 2 //radians
#define MAX_DIST_R2 (5*CV_PI/180.0) //radians
#define MAX_DIST_T 100 //mm

#endif
